$(function() {
	var eformId = $("#eformid").val();
	getEformById(eformId);
})

function getEformById(id) {
	var param = {
			time : new Date(),
	}
	$.ajax({
		method : 'get',
		data : param,
		dataType : 'json',
		url : '/eform/'+id,
		success : function(result) {
			if('SUCCESS' === result.result) {
				var eform = result.object;
				$("#eform_name").text(eform.businessName);
				for(key in eform) {
					var box = $("#"+key);
					if(null != box && 'undefined' != box) {
						console.info("value : " + eform[key]);
						box.val(eform[key]);
					}
				}
			}
		}
	});
}


